package org.jeecg.modules.demo.yyc.setting.store.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.demo.yyc.setting.businessplatform.entity.BusinessPlatform;
import org.jeecg.modules.demo.yyc.setting.store.entity.Store;
import org.jeecg.modules.demo.yyc.setting.store.mapper.StoreMapper;
import org.jeecg.modules.demo.yyc.setting.store.service.IStoreService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 平台店铺
 * @Author: jeecg-boot
 * @Date:   2022-11-19
 * @Version: V1.0
 */
@Service
public class StoreServiceImpl extends ServiceImpl<StoreMapper, Store> implements IStoreService {

    @Override
    public List<Store> getStoreByPlatform(String platformId) {
        Store store = new Store();
        store.setPlatformId(platformId);
        QueryWrapper<Store> queryWrapper = QueryGenerator.initQueryWrapper(store, null);
        return this.list(queryWrapper);
    }
}
